import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useTextPinia = defineStore('useTextPinia', () => {
const textList = ref([])

const updateTextList = (newTextList) => {
    textList.value = JSON.parse(JSON.stringify(newTextList))
    return textList.value
  }
  return { textList, updateTextList }
},{
   persist: true,
})

export default useTextPinia
